package com.sunny.design.observer.guava.gper;

/**
 * @author Sunny
 * @date 2020/3/23
 */
public class Test {
    public static void main(String[] args) {
        GPer gper = GPer.getInstance();

        gper.register(new Teacher("Tom"));

        Question question = new Question();
        question.setUserName("Sunny");
        question.setContent("观察者模式怎么玩?");

        gper.publishQuestion(question);
    }
}
